<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String studentId = request.getParameter("studentId");
if(null!=request.getParameter("studentId")){studentId = request.getParameter("studentId");}
if(null!=request.getAttribute("studentId")){studentId = (String)request.getAttribute("studentId");}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ceping_habit.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path %>/reference/css/Beike.css" rel="stylesheet" type="text/css">


  </head>
  
  <body>
  <form action="<%=path %>/beike/habit.do?method=updateHabit" name="frm" method="post">
   <input type="hidden" name="studentId" value="<%=studentId %>" />
   <input type="hidden" name="id" value="${habit.id }" />
   	<table width="100%" border="1" cellpadding="5" cellspacing="0" borderColorDark=#ffffff bgColor=#A0C8FA borderColorLight=#89d4e9 >
			<tr>
				  <td width="17%" height="25" bgcolor="#F5F5F5">进餐：</td>
				  <td width="34%" height="25" bgcolor="#F5F5F5">&nbsp;<input type="text" name="dine" value="${habit.dine }" /> </td>
				  <td width="15%" bgcolor="#F5F5F5">睡眠：</td>
				  <td width="34%" bgcolor="#F5F5F5">&nbsp;<input type="text" name="sleep" value="${habit.sleep }" /></td>
				</tr>
				<tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">入厕：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="toilet" value="${habit.toilet }" /></td>
				  <td height="30" bgcolor="#FFFFFF">穿戴衣服：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="wear" value="${habit.wear }" /></td>
				</tr>
				<tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">个人整洁：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="neatness" value="${habit.neatness }" /></td>
				  <td height="30" bgcolor="#FFFFFF">公共卫生：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="publicHealth" value="${habit.publicHealth }" /></td>
				</tr>
				  <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">安全意识：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="safety" value="${habit.safety }" /></td>
				  <td height="30" bgcolor="#FFFFFF">礼貌行为：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="courtesy" value="${habit.courtesy }" /></td>
				  </tr>
				  <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">关心他人：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="concernForOthers" value="${habit.concernForOthers }" /></td>
				  <td height="30" bgcolor="#FFFFFF">遵守规则：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="observe" value="${habit.observe }" /></td>
				  </tr>
				  <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">劳动习惯：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="work" value="${habit.work }" /></td>
				  <td height="30" bgcolor="#FFFFFF">爱护物品：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="cherish" value="${habit.cherish }" /></td>
				  </tr>
				   <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">诚实：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="honest" value="${habit.honest }" /></td>
				  <td height="30" bgcolor="#FFFFFF">独立活动：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="independenceActivity" value="${habit.independenceActivity }" /></td>
				  </tr>
				   <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">学习兴趣：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="learningInterest" value="${habit.learningInterest }" /></td>
				  <td height="30" bgcolor="#FFFFFF">注意力：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="attention" value="${habit.attention }" /></td>
				  </tr>
				   <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">任务意识：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="scoringMentality" value="${habit.scoringMentality }" /></td>
				  <td height="30" bgcolor="#FFFFFF">学习姿势：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="posture" value="${habit.posture }" /></td>
				  </tr>
				   <tr>
				  <td width="17%" height="30" bgcolor="#FFFFFF">总分：</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;<input type="text" name="score" value="${habit.score }" /></td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;</td>
				  <td height="30" bgcolor="#FFFFFF">&nbsp;</td>
				  </tr>
				  <tr>
				  	<td align="center" bgcolor="#FFFFFF" colspan="4"><input type="submit" value="保 存" /></td>
				  </tr>
			  </table>
			  </form>
  </body>
</html>
